.class public abstract Lcom/instagram/android/d/j/c;
.super Ljava/lang/Object;
.source "AbstractLoaderRequest.java"

# interfaces
.implements Lcom/instagram/android/d/c/g;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Lcom/instagram/android/d/c/g;"
    }
.end annotation


# instance fields
.field private final a:I

.field protected final b:Lcom/instagram/android/d/j/a;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/instagram/android/d/j/a",
            "<TT;>;"
        }
    .end annotation
.end field

.field protected c:Landroid/content/Context;

.field protected d:Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;

.field private final e:Landroid/support/v4/app/aj;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/support/v4/app/aj;ILcom/instagram/android/d/j/a;)V
    .locals 1
    .parameter
    .parameter
    .parameter
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Landroid/support/v4/app/aj;",
            "I",
            "Lcom/instagram/android/d/j/a",
            "<TT;>;)V"
        }
    .end annotation

    .prologue
    .line 27
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 29
    invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/d/j/c;->c:Landroid/content/Context;

    .line 30
    iput-object p2, p0, Lcom/instagram/android/d/j/c;->e:Landroid/support/v4/app/aj;

    .line 31
    iput p3, p0, Lcom/instagram/android/d/j/c;->a:I

    .line 33
    if-nez p4, :cond_0

    .line 34
    new-instance p4, Lcom/instagram/android/d/j/d;

    invoke-direct {p4, p0}, Lcom/instagram/android/d/j/d;-><init>(Lcom/instagram/android/d/j/c;)V

    .line 42
    :cond_0
    iput-object p4, p0, Lcom/instagram/android/d/j/c;->b:Lcom/instagram/android/d/j/a;

    .line 43
    invoke-virtual {p0}, Lcom/instagram/android/d/j/c;->k()V

    .line 44
    return-void
.end method


# virtual methods
.method public abstract a()Lcom/instagram/android/d/b/a;
.end method

.method protected a_()Z
    .locals 1

    .prologue
    .line 78
    const/4 v0, 0x0

    return v0
.end method

.method public a_(Lcom/instagram/android/d/j/j;)Z
    .locals 1
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/j",
            "<TT;>;)Z"
        }
    .end annotation

    .prologue
    .line 94
    const/4 v0, 0x1

    return v0
.end method

.method public abstract b(Lcom/instagram/android/d/j/j;)Ljava/lang/Object;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/j",
            "<TT;>;)TT;"
        }
    .end annotation
.end method

.method public abstract b()Ljava/lang/String;
.end method

.method public abstract c()Lcom/instagram/android/d/b/c;
.end method

.method public c(Lcom/instagram/android/d/j/j;)V
    .locals 0
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/instagram/android/d/j/j",
            "<TT;>;)V"
        }
    .end annotation

    .prologue
    .line 101
    return-void
.end method

.method public g()V
    .locals 4

    .prologue
    const/4 v3, 0x0

    .line 52
    iput-object v3, p0, Lcom/instagram/android/d/j/c;->d:Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;

    .line 53
    iget-object v0, p0, Lcom/instagram/android/d/j/c;->e:Landroid/support/v4/app/aj;

    iget v1, p0, Lcom/instagram/android/d/j/c;->a:I

    invoke-virtual {p0}, Lcom/instagram/android/d/j/c;->l()Lcom/instagram/android/d/j/h;

    move-result-object v2

    invoke-virtual {v0, v1, v3, v2}, Landroid/support/v4/app/aj;->b(ILandroid/os/Bundle;Landroid/support/v4/app/ak;)Landroid/support/v4/a/c;

    .line 54
    return-void
.end method

.method protected k()V
    .locals 6

    .prologue
    .line 47
    iget-object v0, p0, Lcom/instagram/android/d/j/c;->e:Landroid/support/v4/app/aj;

    iget v1, p0, Lcom/instagram/android/d/j/c;->a:I

    const/4 v2, 0x0

    new-instance v3, Lcom/instagram/android/d/j/m;

    iget-object v4, p0, Lcom/instagram/android/d/j/c;->b:Lcom/instagram/android/d/j/a;

    iget-object v5, p0, Lcom/instagram/android/d/j/c;->c:Landroid/content/Context;

    invoke-direct {v3, v4, v5, p0}, Lcom/instagram/android/d/j/m;-><init>(Lcom/instagram/android/d/j/a;Landroid/content/Context;Lcom/instagram/android/d/j/c;)V

    invoke-virtual {v0, v1, v2, v3}, Landroid/support/v4/app/aj;->a(ILandroid/os/Bundle;Landroid/support/v4/app/ak;)Landroid/support/v4/a/c;

    .line 49
    return-void
.end method

.method protected l()Lcom/instagram/android/d/j/h;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Lcom/instagram/android/d/j/h",
            "<TT;>;"
        }
    .end annotation

    .prologue
    .line 57
    new-instance v0, Lcom/instagram/android/d/j/h;

    iget-object v1, p0, Lcom/instagram/android/d/j/c;->c:Landroid/content/Context;

    iget-object v2, p0, Lcom/instagram/android/d/j/c;->b:Lcom/instagram/android/d/j/a;

    invoke-direct {v0, v1, p0, v2}, Lcom/instagram/android/d/j/h;-><init>(Landroid/content/Context;Lcom/instagram/android/d/j/c;Lcom/instagram/android/d/j/a;)V

    return-object v0
.end method

.method public final m()Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;
    .locals 3

    .prologue
    .line 61
    iget-object v0, p0, Lcom/instagram/android/d/j/c;->d:Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;

    if-nez v0, :cond_0

    .line 62
    invoke-virtual {p0}, Lcom/instagram/android/d/j/c;->a()Lcom/instagram/android/d/b/a;

    move-result-object v0

    sget-object v1, Lcom/instagram/android/d/b/a;->a:Lcom/instagram/android/d/b/a;

    if-ne v0, v1, :cond_2

    .line 63
    invoke-virtual {p0}, Lcom/instagram/android/d/j/c;->b()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/d/j/c;->c()Lcom/instagram/android/d/b/c;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/d/a/a;->d(Ljava/lang/String;Lcom/instagram/android/d/b/c;)Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/d/j/c;->d:Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;

    .line 68
    :cond_0
    :goto_0
    invoke-virtual {p0}, Lcom/instagram/android/d/j/c;->a_()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 69
    invoke-static {}, Lcom/instagram/m/a/b;->a()Lcom/instagram/m/a/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/m/a/b;->h()Ljava/lang/String;

    move-result-object v0

    .line 70
    if-eqz v0, :cond_1

    .line 71
    iget-object v1, p0, Lcom/instagram/android/d/j/c;->d:Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;

    const-string v2, "X-Attribution-ID"

    invoke-interface {v1, v2, v0}, Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;->addHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 74
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/d/j/c;->d:Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;

    return-object v0

    .line 65
    :cond_2
    invoke-virtual {p0}, Lcom/instagram/android/d/j/c;->b()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/d/j/c;->c()Lcom/instagram/android/d/b/c;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/instagram/android/d/a/a;->b(Ljava/lang/String;Lcom/instagram/android/d/b/c;)Lch/boye/httpclientandroidlib/client/methods/HttpGet;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/d/j/c;->d:Lch/boye/httpclientandroidlib/client/methods/HttpUriRequest;

    goto :goto_0
.end method

.method public final n()I
    .locals 1

    .prologue
    .line 82
    iget v0, p0, Lcom/instagram/android/d/j/c;->a:I

    return v0
.end method

.method public final o()Landroid/support/v4/app/aj;
    .locals 1

    .prologue
    .line 86
    iget-object v0, p0, Lcom/instagram/android/d/j/c;->e:Landroid/support/v4/app/aj;

    return-object v0
.end method

.method public final p()Landroid/content/Context;
    .locals 1

    .prologue
    .line 90
    iget-object v0, p0, Lcom/instagram/android/d/j/c;->c:Landroid/content/Context;

    return-object v0
.end method

.method public q()V
    .locals 0

    .prologue
    .line 98
    return-void
.end method
